﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace diploma.test.core
{
    public class BindsQuestion : Question
    {
        Dictionary<string, string> options;
        Dictionary<string, string> answer;
        public BindsQuestion(string _question, IDictionary<string, string> _options)
            : base(_question)
        {
            this.options = new Dictionary<string, string>(_options);
            this.answer = new Dictionary<string, string>(_options);
        }

        public override QuestionTypes Type
        {
            get
            {
                return QuestionTypes.Binds;
            }
        }

        protected void swapOptions()
        {
            Dictionary<string, string> swapedOptions = new Dictionary<string, string>();
            Random rand = new Random();
            int n = options.Count;
            this.options = swapedOptions;
        }

        public Dictionary<string, string> Options
        {
            get
            {
                return options;
            }
        }

        public Dictionary<string, string> RightCombination
        {
            get
            {
                return answer;
            }
        }
    }
}
